dbname=abcdb

obj_path=src/

obj=$(obj_path)exesql.o \
$(obj_path)lex.yy.o \
$(obj_path)lock.o \
$(obj_path)main.o \
$(obj_path)mmdb.o \
$(obj_path)parser.tab.o \
$(obj_path)shm.o \
$(obj_path)shm_interface.o \
$(obj_path)where.o

$(dbname):$(obj)
	gcc -o $(dbname) $(obj) -lrt -lpthread -fno-stack-protector

clean:
	rm $(dbname) $(obj)
